package com.jh.mms.dao;

import java.io.Serializable;
import java.util.List;



public interface IHqlDao<T, PK extends Serializable> extends IBaseDao<T, PK> {
	
	boolean update(T entity);
	
	List<T> updateBatch(List<T> entity);
	
	boolean delete(T entity);
	
	boolean save(T entity);
	
	boolean saveOrUpdate(T entity);
	
	T get(Class<T> cls, PK pk);
	
	List<T> find(Class<T> cls, T entity, String orders[], int pageRows, int pageIndex);
	
	int listCount(Class<T> cls, T entity);
}
